package com.party.business.service.impl;

import java.util.List;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.party.business.mapper.WebinfoPicturesMapper;
import com.party.business.domain.WebinfoPictures;
import com.party.business.service.IWebinfoPicturesService;

/**
 * 图片库Service业务层处理
 *
 * @author ruoyi
 * @date 2025-06-12
 */
@Service
public class WebinfoPicturesServiceImpl extends ServiceImpl<WebinfoPicturesMapper,WebinfoPictures>  implements IWebinfoPicturesService
{
    @Autowired
    private WebinfoPicturesMapper webinfoPicturesMapper;

    /**
     * 查询图片库
     *
     * @param id 图片库主键
     * @return 图片库
     */
    @Override
    public WebinfoPictures selectWebinfoPicturesById(Long id)
    {
        return webinfoPicturesMapper.selectWebinfoPicturesById(id);
    }

    /**
     * 查询图片库列表
     *
     * @param webinfoPictures 图片库
     * @return 图片库
     */
    @Override
    public List<WebinfoPictures> selectWebinfoPicturesList(WebinfoPictures webinfoPictures)
    {
        return webinfoPicturesMapper.selectWebinfoPicturesList(webinfoPictures);
    }

    /**
     * 新增图片库
     *
     * @param webinfoPictures 图片库
     * @return 结果
     */
    @Override
    public int insertWebinfoPictures(WebinfoPictures webinfoPictures)
    {
            return webinfoPicturesMapper.insertWebinfoPictures(webinfoPictures);
    }

    /**
     * 修改图片库
     *
     * @param webinfoPictures 图片库
     * @return 结果
     */
    @Override
    public int updateWebinfoPictures(WebinfoPictures webinfoPictures)
    {
        return webinfoPicturesMapper.updateWebinfoPictures(webinfoPictures);
    }

    /**
     * 批量删除图片库
     *
     * @param ids 需要删除的图片库主键
     * @return 结果
     */
    @Override
    public int deleteWebinfoPicturesByIds(Long[] ids)
    {
        return webinfoPicturesMapper.deleteWebinfoPicturesByIds(ids);
    }

    /**
     * 删除图片库信息
     *
     * @param id 图片库主键
     * @return 结果
     */
    @Override
    public int deleteWebinfoPicturesById(Long id)
    {
        return webinfoPicturesMapper.deleteWebinfoPicturesById(id);
    }
}
